package com.ruoyi.quality.service;

import com.ruoyi.quality.domain.QualityInternalLosses;
import com.ruoyi.quality.domain.vo.QualityInternalLossesVo;
import com.ruoyi.quality.domain.bo.QualityInternalLossesBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 质量内部损失Service接口
 *
 * @author ruoyi
 * @date 2023-08-16
 */
public interface IQualityInternalLossesService {

    /**
     * 查询质量内部损失
     */
    QualityInternalLossesVo queryById(Long lossesId);

    /**
     * 查询质量内部损失列表
     */
    TableDataInfo<QualityInternalLossesVo> queryPageList(QualityInternalLossesBo bo, PageQuery pageQuery);

    /**
     * 查询质量内部损失列表
     */
    List<QualityInternalLossesVo> queryList(QualityInternalLossesBo bo);

    /**
     * 新增质量内部损失
     */
    Boolean insertByBo(QualityInternalLossesBo bo);

    /**
     * 修改质量内部损失
     */
    Boolean updateByBo(QualityInternalLossesBo bo);

    /**
     * 校验并批量删除质量内部损失信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
